package com.idp.web.test.service.impl;
import com.idp.web.test.service.DetailListTypeService;
import com.idp.web.test.dao.DetailListTypeDao;
import com.idp.web.test.entity.DetailListType;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.idp.common.persistence.Page;
import com.idp.common.util.ResourceUtils;

/**
 * 
 * 出入库明细类型service实现类
 * 
 * <pre>
 * 	历史记录：
 * 	2017-06-06 Amber
 * 	新建文件
 * </pre>
 * 
 * @author 
 * <pre>
 * SD
 * 	Amber
 * PG
 *	Amber
 * UT
 *
 * MA
 * </pre>
 * @version $Rev$
 *
 * <p/> $Id$
 *
 */
@Service("detailListTypeService")
public class DetailListTypeServiceImpl implements DetailListTypeService {

	@Resource
	private DetailListTypeDao detailListTypeDao;
	
	@Override
	public Page<DetailListType> findByPage(DetailListType detailListType, Page<DetailListType> page) {

		page.setResult(detailListTypeDao.find(detailListType, page));
		
		return page;
	}
	
	@Override
	public List<DetailListType> findBySearch(DetailListType detailListType) {

		return detailListTypeDao.find(detailListType);
	}
	
	@Override
	public DetailListType getById(Integer id) {

		return detailListTypeDao.getById(id);
	}

	@Override
	public void add(DetailListType detailListType) {

		detailListTypeDao.add(detailListType);
	}
	
	@Override
	public void update(DetailListType detailListType) {

		detailListTypeDao.update(detailListType);
	}

	@Override
	public void delete(Integer id) {

		detailListTypeDao.delete(id);
	}
 	
}